import amaret.freestyle.mcu.atmega128.McuC;

import McuC.BusyWait;
import McuC.GlobalInterrupts;
import McuC.Mcu;
import McuC.Uart;
//import McuC.TimerMilli1 as TimerMilli;

import McuC.PA0;
import McuC.PA1;
import McuC.PA2;
import McuC.PA3;
import McuC.PA4;
import McuC.PA5;
import McuC.PA6;
import McuC.PA7;

import amaret.freestyle.board.Board;
import amaret.freestyle.board.Led0;
import amaret.freestyle.board.Led1;
import amaret.freestyle.board.Led2;

metaonly module BoardC inherits biosbob.composite.IModule {

    export Board inherits embios.interfaces.IBoard;
    
    export BusyWait;
    export GlobalInterrupts;
    export Mcu;
    export Uart;
    //export TimerMilli;
    
    // MicaZ Leds
    export Led0 inherits embios.interfaces.ILed;    // Orange LED
    export Led1 inherits embios.interfaces.ILed;    // Greed LED
    export Led2 inherits embios.interfaces.ILed;    // Red LED
    
}

##--------

final Led0.Gpio := PA2;
final Led1.Gpio := PA1;
final Led2.Gpio := PA0;

